import React from "react";

const CartContext = React.createContext(
    {
        items: [],//商品
        totalAmount: 0,//商品总数
        totalPrice: 0,//商品总价,
        // addFood: () => { },
        // subFood: () => { },
        // clearfood: () => { }
        cartDispatch:()=>{}

    }
);

export default CartContext;